<template>
  <input type="text" v-model="count">
  <hr>
  <sentval :msg="msg" :count="count" @update-count="updateCount"></sentval>
</template>

<script setup>
import sentval from './components/父子传值.vue'
import {ref} from 'vue'
const msg = ref('老板西瓜多少钱一斤?')
const count = ref(15)
const updateCount = (n) =>count.value=n

</script>